﻿// -----------------------------------------------------------------------
// <copyright file="InvoiceDetail_BLL.cs" company="">
// TODO: Update copyright text.
// </copyright>
// -----------------------------------------------------------------------

namespace PMSGSC.DAL
{
    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Text;

    /// <summary>
    /// TODO: Update summary.
    /// </summary>
    public class InvoiceDetail_BLL
    {
        public static List<InvoiceDetail> GetAll(int id)
        {
            return InvoiceDetail_DAL.GetAll(id);
        }
        public static List<InvoiceDetail> ReportStockOut(DateTime From, DateTime To)
        {
            return InvoiceDetail_DAL.ReportStockOut(From, To);
        }
        public static List<InvoiceDetail> ConsumableStock(DateTime From, DateTime To, string StockName, bool TransType)
        {
            return InvoiceDetail_DAL.ConsumableStock(From, To, StockName, TransType);
        }
        public static bool Insert(InvoiceDetail InvoiceDetail)
        {
            return InvoiceDetail_DAL.Insert(InvoiceDetail);
        }
        public static List<InvoiceDetail> GetDataById(int id)
        {
            return InvoiceDetail_DAL.GetDataById(id);
        }
        public static List<InvoiceDetail> GetDataByWorkOrderID(int woID)
        {
            return InvoiceDetail_DAL.GetDataByWorkOrderID(woID);
        }
        public static bool Update(InvoiceDetail InvoiceDetail)
        {
            return InvoiceDetail_DAL.Update(InvoiceDetail);
        }
        public static bool Delete(InvoiceDetail InvoiceDetail)
        {
            return InvoiceDetail_DAL.Delete(InvoiceDetail);
        }
        public static int GetOrderNumberVoucher()
        {
            return InvoiceDetail_DAL.GetOrderNumberVoucher();
        }
        public static InvoiceDetail GetNewInvoiceDetail()
        {
            return InvoiceDetail_DAL.GetNewInvoiceDetail();
        }
    }
}
